// 存放不同身份的菜单
const menuConfig = {
    user: {
        title: '用户',
        submenu_home: {
            // 用户管理菜单
            userinfo: [
                {
                    path: 'userinfo/index',
                    name: '个人中心',
                    iconHtml: 'icon-RectangleCopy',
                    children: [
                        {
                            path: 'userinfo/index',
                            name: '个人信息卡',
                            iconHtml: 'icon-speedometer',
                            children: []
                        },
                        {
                            path: 'userinfo/updata_password',
                            name: '修改密码',
                            iconHtml: 'icon-speedometer',
                            children: []
                        },
                    ]
                },
            ],
            //    后台菜单
            layout: [
                {
                    path: 'index',
                    name: '主页面',
                    iconHtml: 'icon-shouye-zhihui',
                    children: []
                },
                {
                    path: 'courselist',
                    name: '我的课程',
                    iconHtml: 'icon-jubao',
                    children: [
                        {
                            path: 'courselist',
                            name: '课程列表',
                            iconHtml: 'icon-speedometer',
                            children: []
                        },
                        // {
                        //     path: 'WrongQuestionBook',
                        //     name: '我的错题本',
                        //     iconHtml: 'icon-speedometer',
                        //     children: []
                        // },

                    ]
                },
                {
                    path: 'StudentScore',
                    name: '我的成绩',
                    iconHtml: 'icon-RectangleCopy',
                    children: [
                    ]
                },
                {
                    path: 'StudentQuestion',
                    name: '联系老师',
                    iconHtml: 'icon-RectangleCopy',
                    children: [
                    ]
                }
            ],
        }
    },
    // 菜单配置
    admin: {
        title: '管理员',
        submenu_home: {
            //    后台菜单
            layout: [
                {
                    path: 'index',
                    name: '主页面',
                    iconHtml: 'icon-shouye-zhihui',
                    children: []
                },
                {
                    path: 'homeworksituation',
                    name: '作业总览',
                    iconHtml: 'icon-jubao',
                    children: [
                        {
                            path: 'homeworksituation',
                            name: '作业情况',
                            iconHtml: 'icon-speedometer',
                            children: []
                        },
                        {
                            path: 'TeacherReleaseSituation/1',
                            name: '老师发布情况',
                            iconHtml: 'icon-speedometer',
                            children: []
                        },
                        {
                            path: 'TeacherReleaseSituation/2',
                            name: '学生完成情况',
                            iconHtml: 'icon-speedometer',
                            children: []
                        },
                    ]
                },
                {
                    path: 'achievementslist',
                    name: '成绩总览',
                    iconHtml: 'icon-RectangleCopy',
                    children: [
                        {
                            path: 'achievementslist',
                            name: '成绩列表',
                            iconHtml: 'icon-speedometer',
                            children: []
                        },
                        {
                            path: 'studentachievements',
                            name: '成绩分析列表',
                            iconHtml: 'icon-speedometer',
                            children: []
                        },
                    ]
                },
                {
                    path: 'StudentQuestion',
                    name: '聊天',
                    iconHtml: 'icon-RectangleCopy',
                    children: [
                    ]
                }
            ],
            // 用户管理菜单
            userinfo: [
                {
                    path: 'userinfo/index',
                    name: '个人中心',
                    iconHtml: 'icon-RectangleCopy',
                    children: [
                        {
                            path: 'userinfo/index',
                            name: '个人信息卡',
                            iconHtml: 'icon-speedometer',
                            children: []
                        },
                        {
                            path: 'userinfo/updata_password',
                            name: '修改密码',
                            iconHtml: 'icon-speedometer',
                            children: []
                        },
                    ]
                },
                {
                    path: 'userinfo/management_user',
                    name: '用户管理',
                    iconHtml: 'icon-RectangleCopy',
                    children: [
                        {
                            path: 'userinfo/management_user',
                            name: '用户列表',
                            iconHtml: 'icon-speedometer',
                            children: []
                        },
                        {
                            path: 'userinfo/loginrecord',
                            name: '登录信息',
                            iconHtml: 'icon-speedometer',
                            children: []
                        },
                        {
                            path: 'userinfo/error',
                            name: '敬请期待',
                            iconHtml: 'icon-speedometer',
                            children: []
                        },
                    ]
                }
            ],
            //    非后台菜单
            nolayout: [

            ]
        }
    },
    teacher: {
        title: '老师',
        submenu_home: {
            //    后台菜单
            layout: [
                {
                    path: 'index',
                    name: '主页面',
                    iconHtml: 'icon-shouye-zhihui',
                    children: []
                },
                {
                    path: 'myQuestionbank',
                    name: '我的课程',
                    iconHtml: 'icon-jubao',
                    children: [
                        {
                            path: 'myquestionbank',
                            name: '我的题库',
                            iconHtml: 'icon-speedometer',
                            children: []
                        },
                        {
                            path: 'MyCourseList',
                            name: '我的课程',
                            iconHtml: 'icon-speedometer',
                            children: []
                        },
                    ]
                },
                {
                    path: 'studentachievements',
                    name: '学生成绩',
                    iconHtml: 'icon-RectangleCopy',
                    children: [
                    ]
                },
                {
                    path: 'StudentQuestion',
                    name: '学生提问',
                    iconHtml: 'icon-RectangleCopy',
                    children: [
                    ]
                }
            ],
            // 用户管理菜单
            userinfo: [
                {
                    path: 'userinfo/index',
                    name: '个人中心',
                    iconHtml: 'icon-RectangleCopy',
                    children: [
                        {
                            path: 'userinfo/index',
                            name: '个人信息卡',
                            iconHtml: 'icon-speedometer',
                            children: []
                        },
                        {
                            path: 'userinfo/updata_password',
                            name: '修改密码',
                            iconHtml: 'icon-speedometer',
                            children: []
                        },
                    ]
                },
                // {
                //     path: 'userinfo/management_user',
                //     name: '用户管理',
                //     iconHtml: 'icon-RectangleCopy',
                //     children: [
                //         {
                //             path: 'userinfo/management_user',
                //             name: '用户列表',
                //             iconHtml: 'icon-speedometer',
                //             children: []
                //         },
                //         {
                //             path: 'userinfo/error',
                //             name: '敬请期待',
                //             iconHtml: 'icon-speedometer',
                //             children: []
                //         },
                //     ]
                // }
            ],
            //    非后台菜单
            nolayout: [

            ]
        }
    }
}


export default menuConfig

// 存放不同身份的权限